package com.pine.app.module.security.oauth.provider.sso.token;

import com.pine.app.module.security.oauth.provider.OAuth2Authentication;
import com.pine.app.module.security.oauth.provider.token.OAuth2AccessToken;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author xiaoyuan
 * @create 2020/3/17
 **/
public interface OAuth2SsoTokenHandler {

    String getState();

    OAuth2AccessToken getAccessToken(HttpServletRequest request, HttpServletResponse response) throws IOException;

    OAuth2Authentication getOAuth2Authentication(OAuth2AccessToken oAuth2AccessToken);


}
